package cn.zwx.activiti.example.service;

import cn.zwx.activiti.example.model.req.InstancesByUserReq;
import cn.zwx.activiti.example.model.resp.InstancesByIdResp;
import cn.zwx.activiti.example.model.resp.InstancesByUserResp;
import org.activiti.api.runtime.shared.query.Page;

import java.util.List;

/**
 * @description:
 * @projectName:activiti-example
 * @see:cn.zwx.activiti.example.service
 * @author:zhangwenxue
 * @createTime:2021/6/8 20:26
 * @version:1.0
 */
public interface ActivitiHistoryService {
    /**
     * @description 查询用户历史任务
     * @return org.activiti.api.runtime.shared.query.Page<cn.zwx.activiti.example.model.resp.InstancesByUserResp>
     * @author zhangwenxue
     * @createTime 2021/6/8 20:31
     **/
    Page<InstancesByUserResp> getInstancesByUser(String userName, InstancesByUserReq req);
    /**
     * @description 根据流程实例id任务历史
     * @return java.util.List<cn.zwx.activiti.example.model.resp.InstancesByIdResp>
     * @author zhangwenxue
     * @createTime 2021/6/8 20:51
     **/
    List<InstancesByIdResp> getInstancesById(String processInstanceId);
}
